package com.piepesken.mediscale.ui.components

import androidx.compose.runtime.Composable
import com.himanshoe.kalendar.common.KalendarSelector
import com.himanshoe.kalendar.common.KalendarStyle
import com.himanshoe.kalendar.common.theme.KalendarShape.ButtomCurvedShape
import com.himanshoe.kalendar.ui.Kalendar
import com.himanshoe.kalendar.ui.KalendarType

val WeightCalendarStyle = KalendarStyle(
    kalendarBackgroundColor = null,
    kalendarColor = null,
    kalendarSelector = KalendarSelector.Circle(),
    hasRadius = true,
//    elevation = if (hasRadius) Grid.One else Grid.Zero,eeweew
    shape = ButtomCurvedShape,
)

@Composable
fun WeightCalendar() {
    Kalendar(kalendarType = KalendarType.Firey(), kalendarStyle = WeightCalendarStyle, onCurrentDayClick = { day, event ->
        //handle the date click listener
    }, errorMessage = {
        //Handle the error if any
    })
}